package com.netflix.service.user.rpc;

import com.basic.pojo.good.ShoppingItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "shopping-service",contextId = "shoppingRpcService")
public interface ShoppingRpcService {
	@RequestMapping(value = "/shopping/items", method = RequestMethod.GET)
	List<ShoppingItem> getAllItems();
}
